---
title: IBM WatsonX
sidebarTitle: IBM WatsonX
---

The IBM WatsonX model provides access to IBM's language models.

## Parameters

| Parameter    | Type               | Default                        | Description                                                           |
| ------------ | ------------------ | ------------------------------ | --------------------------------------------------------------------- |
| `id`         | `str`              | `"meta-llama/llama-3-1-70b-instruct"` | The id of the IBM WatsonX model to use                       |
| `name`       | `str`              | `"IBMWatsonx"`                 | The name of the model                                                 |
| `provider`   | `str`              | `"IBM"`                        | The provider of the model                                             |
| `api_key`    | `Optional[str]`    | `None`                         | The API key for IBM WatsonX (defaults to WATSONX_API_KEY env var)    |
| `base_url`   | `str`              | `"https://us-south.ml.cloud.ibm.com/ml/v1/text/chat"` | The base URL for the IBM WatsonX API                |
| `project_id` | `Optional[str]`    | `None`                         | The project ID for IBM WatsonX (defaults to WATSONX_PROJECT_ID env var) |

IBM WatsonX extends the OpenAI-compatible interface and supports most parameters from OpenAI.
